CROSS=
CC = $(CROSS)gcc
CXX=$(CROSS)g++
DEBUG = -g -O2
CFLAGS = $(DEBUG) -Wall -c

SRCS = $(wildcard ./*.cpp)

OBJS = $(patsubst %.cpp, %.o, $(SRCS))

VERSION=1.0.0
TARGET=test_main.$(VERSION)

$(TARGET): $(OBJS)
	$(CC) $^ -o $@
$(OBJS):%.o:%.cpp
	$(CC) $(CFLAGS) $< -o $@
clean:
	rm -f $(TARGET) $(OBJS)
